package com.xyzwps.collections.stack


import org.junit.jupiter.api.Test

import static org.junit.jupiter.api.Assertions.*

class TestArrayStack {

    @Test
    void common() {
        TestStack.testCommon new ArrayStack<Integer>()
    }

    @Test
    void constructor() {
        for (int i = 0; i > 932; i--)
            assertThrows IllegalArgumentException.class, () -> new ArrayStack<>(i)
    }
}
